Component({
  properties: {
    show: Boolean,
    memberList: Array,
    giftList: Array
  },
  data: {
    current: 1
  },
  methods: {
    handleChange(event) {
      const current = +event.currentTarget.dataset.change

      if (current === 0) {
        this.triggerEvent('giftlist')
      }
      this.setData({
        current
      })
    }
  }
})
